package com.ponhu.ea2.vo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * @author Wang
 * @date 2021/12/31 5:56 下午
 */
@Data
@Accessors(chain = true)
@ApiModel("调拨在途查询结果对象")
@TableName(value ="v_getzaitu_stock")
public class ApplyingStockDataVo implements Serializable {
    private static final long serialVersionUID = -1224794158907807865L;

    // 商品编码、调出仓库、调入仓库、计划数量、出库数量、入库数量、在途数量、调拨时间、调拨单号、调拨单状态
    // inco是商品编码   whco是调出仓  pfwh 是调入仓 qty是计划数量  oqty是出库数量  iqty是入库数量  ztqty是在途数量 biid是调拨单号  crdt是创建时间
    @ApiModelProperty("商品编码")
    @TableField("inco")
    private String inventoryCode;

    @ApiModelProperty("调出仓")
    @TableField("whco")
    private String outWarehouseCode;

    @ApiModelProperty("调入仓")
    @TableField("pfwh")
    private String inWarehouseCode;

    @ApiModelProperty("计划数量")
    @TableField("qty")
    private Integer planNum;

    @ApiModelProperty("出库数量")
    @TableField("oqty")
    private Integer outWarehouseNum;

    @ApiModelProperty("入库数量")
    @TableField("iqty")
    private Integer inWarehouseNum;

    @ApiModelProperty("在途数量")
    @TableField("ztqty")
    private Integer freeNum;

    @ApiModelProperty("调拨时间")
    @TableField("crdt")
    private LocalDateTime applyTime;

    @ApiModelProperty("调拨单号")
    @TableField("biid")
    private String applyNo;

//    @ApiModelProperty("调拨单状态")
//    @TableField(" ")
//    private String applyStatus;
}
